Skip to content

Replace py.process.ForkedFunc with multiprocessing#103

Open
bharathkrishna0 wants to merge 1 commit into
pytest-dev:masterfrom
bharathkrishna0:remove-py-dependency
Open

Replace py.process.ForkedFunc with multiprocessing#103
bharathkrishna0 wants to merge 1 commit into
pytest-dev:masterfrom
bharathkrishna0:remove-py-dependency

Conversation

@bharathkrishna0
Copy link
Copy Markdown

@bharathkrishna0 bharathkrishna0 commented May 24, 2026

Fixes Debian Bug#1121676

Summary

Removes the deprecated py library dependency by replacing
py.process.ForkedFunc with Python's stdlib multiprocessing.

Changes

  • Drop py from dependencies entirely
  • Capture stdout/stderr at OS fd level (survives SIGKILL/SIGTERM)
  • Crash messages now include signal name: CRASHED with signal 15 (SIGTERM)
  • Added EXITED with status N for non-signal exits
  • Fixed xfail + crash interaction
  • Fixed xfail_marker.kwargs["reason"] KeyError for positional args

Tests

10 passed, 2 xfailed (pre-existing known limitations unrelated to this change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant